<?php
/**
 * Manager controller
 * 
 * @author Huy Ta Ba Thanh <huytbt@gmail.com> 
 * @version $Id: ManagerController.php 1 2011-04-26 8:36:30Z huytbt $
 */

class ManagerController extends Controller
{
	public $defaultAction = 'menu';
	
	public function filters()
	{
		return array(
			'rights',
		);
	}
	
	/*public function accessRules()
	{
		return array(
			array('allow',
				'roles'=>array('admin'),
			),
			array('deny',
				'users'=>array('*'),
			),
		);
	}*/
	
	/**
	 * Menu action
	 */
	public function actionMenu()
	{
		$this->render('menu');
	}
	
	/**
	 * Menu manager action
	 */
	public function actionMenuManager()
	{
		$model = new MenuManager();
		$this->render('menumanager',array(
			'model'=>$model,
		));
	}
}
